<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/inv/invBusiness.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			var page = sys_fill_parm('queryInvBusinessForm');
			query_invBusiness(page);
		}
	});
	$('#queryInvBusinessForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>

<form id="queryInvBusinessForm">
	<table class="search_term_table">
		<tr><th style="width:50px;">名称</th>
			<td><input type="text" name="name" style="width:100px;"/></td>
			<th style="width:60px;">是否屏蔽</th>
			<td><@mt.YesOrNo value=((invBusiness.deleted)!false) r=true name='deleted' d=false mc=false /></td>
			<th style="width:50px;">类型</th>
			<td>
				<select id="type" name="type" style="width:100px;">
					<option value="">所有</option>
					<option value="1">供应商</option>
					<option value="2">客户</option>
				</select>
			</td>
			
			<td style="text-align:right;">
				<button class="btn btn-info" onclick="javascript: query_invBusiness(); return false;"><i class="icon-search"></i> 查 询 </button>
				<button class="btn btn-success" onclick="javascript: sys_load_handle('invBusiness-edit'); return false;"><i class="icon-file"></i> 添 加 </button>
			</td>
		</tr>
		<tr></tr>
		<tr>
			<th>编号</th>
			<td><input type="text" name="sid" style="width:100px;"/></td>
			<th>所属类别</th>
			<td>
				<input id="stn" type="text" name="stn" style="width: 80px;">
				<input id="stc" type="hidden" name="stc">
			</td>
		</tr>
	</table>
</form>
<div id="invBusinessResultList"></div>
